package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.item.img.delete Request
	 * @author fxy
	 *
	 */
	public class ItemImgDeleteRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.item.img.delete"
		}

		/**
		 *  Y 	 商品图片ID
		 */
		[Bindable]
		public var itemimg_id:String;
		/**
		 * Y 	商品ID
		 */
		[Bindable]
		public var iid:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([itemimg_id, iid]))
			{
				throw new InvalidRequestParametersException("请求参数[itemimg_id, iid]不能为空");
			}
		}
	}
}